Package edu.claflin.finder.algo
Class Bundle
java.lang.Object
edu.claflin.finder.algo.Algorithm
edu.claflin.finder.algo.Bundle
- All Implemented Interfaces:
Processable<Graph,,Graph> PropertyChangeListener,EventListener
Processes a
Graph searching for subgraphs. Will utilize all
provided algorithms. Effectively bundles more than one algorithm into a
single algorithm.- Version:
- 3.1.2 February 4, 2015
- Author:
- Charles Allen Schultz II
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.claflin.finder.algo.Algorithm
Algorithm.GraphSortOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Algorithm[]TheAlgorithmarray containing the algorithms to process graphs with.private intNumber of algorithms executed.Fields inherited from class edu.claflin.finder.algo.Algorithm
args, PROP_PROGRESS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.claflin.finder.algo.Algorithm
addPropertyChangeListener, cull, getGraphSortOrder, getMinNodeCount, getPartiteNumber, getWeightName, removePropertyChangeListener, setGraphSortOrder, setMinNodeCount, setPartiteNumber, setProgress, setWeightName, zeropad
-
Field Details
-
algorithms
TheAlgorithmarray containing the algorithms to process graphs with. -
done
private int doneNumber of algorithms executed. Used for tracking progress.
-
-
Constructor Details
-
Bundle
Constructs the Algorithm object.- Parameters:
algorithms- the Algorithm array to process graphs with.
-
-
Method Details
-
process
Processes data.
Finds most Subgraphs by running the graph through all the Algorithm objects in the algorithms array. Used to search the same via different methods.- Specified by:
processin interfaceProcessable<Graph,Graph> - Parameters:
graph- theGraphobject to search through.- Returns:
- the ArrayList of Graph objects holding all found subgraphs.
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
toString
-